//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff
{
    /*
    internal sealed class FormatRun
    {
        private readonly ushort _firstCharIndex;
        private readonly ushort _fontIndex;

        public FormatRun(BinaryReader reader)
        {
            _firstCharIndex = reader.ReadUInt16();
            _fontIndex = reader.ReadUInt16();
        }

        public const int Length = 4;

        public override string ToString()
        {
            return string.Format("{0} firstChar= {1} fontIndex= {2}", base.ToString(), _firstCharIndex, _fontIndex);
        }

        public void Write(BinaryWriter writer)
        {
            throw new NotImplementedException();
        }

        public bool Equals(FormatRun other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return other._firstCharIndex == _firstCharIndex && other._fontIndex == _fontIndex;
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof (FormatRun)) return false;
            return Equals((FormatRun) obj);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                return (_firstCharIndex.GetHashCode()*397) ^ _fontIndex.GetHashCode();
            }
        }
    }*/
}